package com.wkq.dao;

import com.wkq.domain.SysLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ILogDao {

    @Insert(" insert into syslog(visitTime, username, ip, url, executionTime, method) " +
            " values(#{visitTime}, #{username}, #{ip}, #{url}, #{executionTime},#{method}) ")
    public void saveLog (SysLog sysLog);

    @Select(" select id, visitTime, username, ip, url, executionTime, method" +
            " from syslog ")
    public List<SysLog> findAll ();
}
